﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:MDSAdministration" x:Class="MDSAdministration.ConnectWindow"
        Title="Connect" Height="260" Width="584" Loaded="Window_Loaded" Closing="Window_Closing">
    <Window.Resources>
        <Style x:Key="SliderStyle" TargetType="{x:Type GridSplitter}">
            <Setter Property="Background" Value="#9B6495ED"/>
        </Style>
    </Window.Resources>
    <Grid>
        <Grid Margin="0,0,0,0" Height="179" VerticalAlignment="Top">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition Width="5" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Grid Grid.Column="0">
                    <Label Content="Server A" Height="28" HorizontalAlignment="Left" Margin="9,23,0,0" x:Name="label1" VerticalAlignment="Top" HorizontalContentAlignment="Right" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="69,25,0,0" TextBoxBase.TextChanged="cbxServerA_TextChanged" x:Name="cbxServerA" VerticalAlignment="Top" Width="184" IsEditable="True"
                              LostFocus="cbxServerA_LostFocus"
                              SelectionChanged="cbxServerA_SelectionChanged" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="69,54,0,0" x:Name="cbxDatabaseA" VerticalAlignment="Top" Width="184" ItemsSource="{Binding}" GotFocus="cbxDatabaseA_GotFocus" SelectionChanged="cbxDatabaseA_SelectionChanged" />
                       
                    
                    <Label Content="Database" Height="28" HorizontalAlignment="Left" Margin="9,49,0,0" x:Name="label2" VerticalAlignment="Top" HorizontalContentAlignment="Right" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="69,83,0,0" x:Name="cbxModelA" VerticalAlignment="Top" Width="184" ItemsSource="{Binding}" SelectionChanged="cbxModelA_SelectionChanged" GotFocus="cbxModelA_GotFocus" />
                    <Label Content="Model" Height="28" HorizontalAlignment="Left" HorizontalContentAlignment="Right" Margin="9,78,0,0" x:Name="label3" VerticalAlignment="Top" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="69,112,0,0" x:Name="cbxVersionA" VerticalAlignment="Top" Width="184" ItemsSource="{Binding}" SelectionChanged="cbxVersionA_SelectionChanged" GotFocus="cbxVersionA_GotFocus" />
                    <Label Content="Version" Height="28" HorizontalAlignment="Left" HorizontalContentAlignment="Right" Margin="9,107,0,0" x:Name="label4" VerticalAlignment="Top" />
                </Grid>
                <GridSplitter Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{StaticResource SliderStyle}"/>
                <Grid Grid.Column="2">
                    <Label Content="Server B" Height="28" HorizontalAlignment="Left" HorizontalContentAlignment="Right" Margin="6,23,0,0" x:Name="label5" VerticalAlignment="Top" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="66,25,0,0" TextBoxBase.TextChanged="cbxServerB_TextChanged" x:Name="cbxServerB" VerticalAlignment="Top" Width="184" IsEditable="True"
                              LostFocus="cbxServerB_LostFocus"
                              SelectionChanged="cbxServerB_SelectionChanged" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="66,54,0,0" x:Name="cbxDatabaseB" VerticalAlignment="Top" Width="184" ItemsSource="{Binding}" GotFocus="cbxDatabaseB_GotFocus" SelectionChanged="cbxDatabaseB_SelectionChanged" />
                    <Label Content="Database" Height="28" HorizontalAlignment="Left" HorizontalContentAlignment="Right" Margin="6,49,0,0" x:Name="label6" VerticalAlignment="Top" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="66,83,0,0" x:Name="cbxModelB" VerticalAlignment="Top" Width="184" ItemsSource="{Binding}" SelectionChanged="cbxModelB_SelectionChanged" GotFocus="cbxModelB_GotFocus" />
                    <Label Content="Model" Height="28" HorizontalAlignment="Left" HorizontalContentAlignment="Right" Margin="6,78,0,0" x:Name="label7" VerticalAlignment="Top" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="66,112,0,0" x:Name="cbxVersionB" VerticalAlignment="Top" Width="184" ItemsSource="{Binding}" SelectionChanged="cbxVersionB_SelectionChanged" GotFocus="cbxVersionB_GotFocus" />
                    <Label Content="Version" Height="28" HorizontalAlignment="Left" HorizontalContentAlignment="Right" Margin="6,107,0,0" x:Name="label8" VerticalAlignment="Top" />
                </Grid>
            </Grid>
        </Grid>
        <Button Content="Cancel" Height="23" HorizontalAlignment="Left" x:Name="btnCancel" VerticalAlignment="Top" Width="75" Click="btnCancel_Click" Margin="391,185,0,0" />
        <Button Content="Ok" Height="23" HorizontalAlignment="Left" x:Name="btnOk" VerticalAlignment="Top" Width="75" Click="btnOk_Click" Margin="475,185,0,0" />
        <CheckBox x:Name="cbxUseSameAsServerA" Content="Use the Same as Server A" HorizontalAlignment="Left" Margin="307,154,0,0" VerticalAlignment="Top" Width="204" Checked="cbxUseSameAsServerA_Checked" Unchecked="cbxUseSameAsServerA_Unchecked"/>
    </Grid>
</Window>
